Optimal. Leaf size=392 \[ \frac {(f x)^{1+m} \left (b^2 d-2 a c d-a b e+c (b d-2 a e) x^2\right )}{2 a \left (b^2-4 a c\right ) f \left (a+b x^2+c x^4\right )}+\frac {c \left (b \left (4 a e+\sqrt {b^2-4 a c} d (1-m)\right )-2 a \left (\sqrt {b^2-4 a c} e (1-m)+2 c d (3-m)\right )+b^2 (d-d m)\right ) (f x)^{1+m} \, _2F_1\left (1,\frac {1+m}{2};\frac {3+m}{2};-\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}\right )}{2 a \left (b^2-4 a c\right )^{3/2} \left (b-\sqrt {b^2-4 a c}\right ) f (1+m)}-\frac {c \left (b \left (4 a e-\sqrt {b^2-4 a c} d (1-m)\right )+2 a \left (\sqrt {b^2-4 a c} e (1-m)-2 c d (3-m)\right )+b^2 d (1-m)\right ) (f x)^{1+m} \, _2F_1\left (1,\frac {1+m}{2};\frac {3+m}{2};-\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}\right )}{2 a \left (b^2-4 a c\right )^{3/2} \left (b+\sqrt {b^2-4 a c}\right ) f (1+m)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.78, antiderivative size = 358, normalized size of antiderivative = 0.91, number of steps
used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {1291, 1299,
371} \begin {gather*} \frac {c (f x)^{m+1} \left ((1-m) \sqrt {b^2-4 a c} (b d-2 a e)+4 a b e-4 a c d (3-m)+b^2 (d-d m)\right ) \, _2F_1\left (1,\frac {m+1}{2};\frac {m+3}{2};-\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}\right )}{2 a f (m+1) \left (b^2-4 a c\right )^{3/2} \left (b-\sqrt {b^2-4 a c}\right )}-\frac {c (f x)^{m+1} \left (-(1-m) \sqrt {b^2-4 a c} (b d-2 a e)+4 a b e-4 a c d (3-m)+b^2 (d-d m)\right ) \, _2F_1\left (1,\frac {m+1}{2};\frac {m+3}{2};-\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}\right )}{2 a f (m+1) \left (b^2-4 a c\right )^{3/2} \left (\sqrt {b^2-4 a c}+b\right )}+\frac {(f x)^{m+1} \left (c x^2 (b d-2 a e)-a b e-2 a c d+b^2 d\right )}{2 a f \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 1291
Rule 1299
Rubi steps
\begin {align*} \int \frac {(f x)^m \left (d+e x^2\right )}{\left (a+b x^2+c x^4\right )^2} \, dx &=\frac {(f x)^{1+m} \left (b^2 d-2 a c d-a b e+c (b d-2 a e) x^2\right )}{2 a \left (b^2-4 a c\right ) f \left (a+b x^2+c x^4\right )}-\frac {\int \frac {(f x)^m \left (-b^2 d (1-m)+2 a c d (3-m)-a b e (1+m)-c (b d-2 a e) (1-m) x^2\right )}{a+b x^2+c x^4} \, dx}{2 a \left (b^2-4 a c\right )}\\ &=\frac {(f x)^{1+m} \left (b^2 d-2 a c d-a b e+c (b d-2 a e) x^2\right )}{2 a \left (b^2-4 a c\right ) f \left (a+b x^2+c x^4\right )}+\frac {\left (c \left (4 a b e+b^2 d (1-m)+\sqrt {b^2-4 a c} (b d-2 a e) (1-m)-4 a c d (3-m)\right )\right ) \int \frac {(f x)^m}{\frac {b}{2}-\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx}{4 a \left (b^2-4 a c\right )^{3/2}}-\frac {\left (c \left (4 a b e-\sqrt {b^2-4 a c} (b d-2 a e) (1-m)-4 a c d (3-m)+b^2 (d-d m)\right )\right ) \int \frac {(f x)^m}{\frac {b}{2}+\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx}{4 a \left (b^2-4 a c\right )^{3/2}}\\ &=\frac {(f x)^{1+m} \left (b^2 d-2 a c d-a b e+c (b d-2 a e) x^2\right )}{2 a \left (b^2-4 a c\right ) f \left (a+b x^2+c x^4\right )}+\frac {c \left (4 a b e+b^2 d (1-m)+\sqrt {b^2-4 a c} (b d-2 a e) (1-m)-4 a c d (3-m)\right ) (f x)^{1+m} \, _2F_1\left (1,\frac {1+m}{2};\frac {3+m}{2};-\frac {2 c x^2}{b-\sqrt {b^2-4 a c}}\right )}{2 a \left (b^2-4 a c\right )^{3/2} \left (b-\sqrt {b^2-4 a c}\right ) f (1+m)}-\frac {c \left (4 a b e-\sqrt {b^2-4 a c} (b d-2 a e) (1-m)-4 a c d (3-m)+b^2 (d-d m)\right ) (f x)^{1+m} \, _2F_1\left (1,\frac {1+m}{2};\frac {3+m}{2};-\frac {2 c x^2}{b+\sqrt {b^2-4 a c}}\right )}{2 a \left (b^2-4 a c\right )^{3/2} \left (b+\sqrt {b^2-4 a c}\right ) f (1+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 6 vs. order 5 in
optimal.
time = 0.57, size = 160, normalized size = 0.41 \begin {gather*} \frac {x (f x)^m \left (d (3+m) F_1\left (\frac {1+m}{2};2,2;\frac {3+m}{2};-\frac {2 c x^2}{b+\sqrt {b^2-4 a c}},\frac {2 c x^2}{-b+\sqrt {b^2-4 a c}}\right )+e (1+m) x^2 F_1\left (\frac {3+m}{2};2,2;\frac {5+m}{2};-\frac {2 c x^2}{b+\sqrt {b^2-4 a c}},\frac {2 c x^2}{-b+\sqrt {b^2-4 a c}}\right )\right )}{a^2 (1+m) (3+m)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {\left (f x \right )^{m} \left (e \,x^{2}+d \right )}{\left (c \,x^{4}+b \,x^{2}+a \right )^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (f\,x\right )}^m\,\left (e\,x^2+d\right )}{{\left (c\,x^4+b\,x^2+a\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________